package com.tuu.utils;

import java.util.HashMap;
import java.util.Map;

public class  GlobalMap {
    private static final Map map=new HashMap();
    static {
        //map = new HashMap();
        //加这个 map不可更改
        //map = Collections.unmodifiableMap(map);
    }
    public static void set(String key,Object object){
        map.put(key,object);
    }

    public static Object get(String key){
        return map.get(key);
    }
    public static void clear(){
        map.clear();
    }
}
